package mvc.loginPage;

import javax.servlet.http.HttpServletRequest;

import mvc.IModel;
import mvc.IModelCreator;

public class LoginModelCreator implements IModelCreator {
	
		@Override
	    public IModel createModel(HttpServletRequest request) {
			
		LoginModel loginModel = new LoginModel();
		String login = request.getParameter("login");
		String password = request.getParameter("password");
		
		loginModel.setUserLogin(login);
		loginModel.setUserPassword(password);
		// TODO Auto-generated method stub
		return loginModel;
	}

}
